qx.Class.define("secretcuz.io.rest.BlogPostResource", {
	extend : qx.io.rest.Resource,
	
	construct : function() {
		this.base(arguments);
		this.configureRequest(function(req) {
			req.setRequestHeader("Content-Type", "application/json");
		});
		this.map("list", "GET", "/_ah/api/bapi/v1/blogpost");
		this.map("get", "GET", "/_ah/api/bapi/v1/blogpost/{id}");
		this.map("insert", "POST", "/_ah/api/bapi/v1/blogpost");
		this.map("update", "PUT", "/_ah/api/bapi/v1/blogpost/{id}");
		this.map("remove", "DELETE", "/_ah/api/bapi/v1/blogpost/{id}");
	}
});
